package com.mes.service.jy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.ProductroomMapper;
import com.mes.entity.jy.Productroom;
import com.mes.entity.jy.Queryjy;

/**
 * @ClassName: CarRoomServiseImpl 
 * @Description:车间管理的业务层实现类
 * @Author jy
 * @Date 2017年12月28日 下午4:08:21 
 * @version 1.0
 */
@Service
@Transactional
public class CarRoomServiseImpl implements CarRoomServise{
	
	@Resource
	private ProductroomMapper productroomMapper;

	@Override
	public int createCarRoom(Productroom productroom) {
		return productroomMapper.createCarRoom(productroom);
	}

	@Override
	public int countCarRoom(Queryjy queryjy) {
		return productroomMapper.countCarRoom(queryjy);
	}

	@Override
	public List<Productroom> selectCarRoomPagine(Queryjy queryjy) {
		return productroomMapper.selectCarRoomPagine(queryjy);
	}

	@Override
	public Productroom selectCarRoomByid(long id) {
		return productroomMapper.selectCarRoomByid(id);
	}

	@Override
	public int editCarRoom(Productroom productroom) {
		return productroomMapper.editCarRoom(productroom);
	}

	@Override
	public int deleteCarRoom(String ids) {
		return productroomMapper.deleteCarRoom(ids);
	}

	@Override
	public List<Productroom> selectCarRoomAll() {
		return productroomMapper.selectCarRoomAll();
	}

	@Override
	public int selectCarRoomByName(String name) {
		return productroomMapper.selectCarRoomByName(name);
	}
	
	@Override
	public Productroom selCarRoomByName(String name) {
		return productroomMapper.selCarRoomByName(name);
	}


}
